# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-ijson
pkgver=3.1.4
pkgrel=2
pkgdesc="Iterative JSON parser with standard Python iterator interfaces"
url="https://github.com/ICRAR/ijson"
arch="all"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools yajl-dev python3-dev"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/ICRAR/ijson/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/ijson-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
7e64c4fec84fd6942c83809849eefc1c299c597524c0fe73e2cdc542e113faad8f35cc5219b0bc4e05842ac69d8608089d7cbb2dc006e404c184505392b21baa  py3-ijson-3.1.4.tar.gz
"
